/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Printers;

import java.io.File;
import java.util.Date;

/**
 *
 * @author asfeor
 */
public class PrintFile {
    public void print(File f){
    try{    if (f.exists()){
            System.out.println("name: "+f.getName()+"\n size: "+
                                (f.length())/1024+" kbyte"+" \n last modification: "+
                                new Date(f.lastModified()).toString());
          
        } else System.out.println("File "+f.getName()+" is not EXIST!!!");
            
    }catch (SecurityException ex) {System.out.println("File "+f.getName()+"is not ");
                            
    }
 }
}
